package com.springboot.wisdom.serviceApi.mqtt.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * 智能设备日志表
 * @TableName hardware_device_log
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@TableName(value ="hardware_device_log")
public class HardwareDeviceLogDO implements Serializable {
    /**
     * 设备日志表
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String deviceLogId;

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 设备状态【0：关，1：开，2：异常关闭】
     */
//    private MqttDeviceStatusEnum status;
    private String status;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}